import { combineReducers } from 'redux';
const ADDreducer = (state = 0, action) => {
    switch (action.type) {
        case 'ADD1':
            return state + action.value;
        default:
            return state;
    }
};

const DELreducer = (state = 0, action) => {
    switch (action.type) {
        case 'DEL1':
            return state - action.value;
        default:
            return state;
    }
};

const ThunkTest = (state = {}, action) => {
    switch (action.type) {
        case 'getdata':
            return action.data;
        default:
            return state;
    }
};




const Reducers = combineReducers({
    ADDreducer,
    DELreducer,
    ThunkTest
})

export { Reducers }